﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuDragon.Data.Entities
{
    /// <summary>
    /// 日志
    /// </summary>
    public class Sys_Logs
    {
        [Key]
        public int LogId { get; set; }
        /// <summary>
        /// 操作名称
        /// </summary>
        [MaxLength(50)]
        public string ActionName { get; set; }
        /// <summary>
        /// 操作类型
        /// </summary>
        [MaxLength(50)]
        public string ActionType { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        [Required]
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [MaxLength(22)]
        public string UserName { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime LogTime { get; set; }
        /// <summary>
        /// 登录ip
        /// </summary>
        [MaxLength(22)]
        public string LoginIp { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
